<template>
  <el-menu class="order-index-el-menu" :default-active="params.type" mode="horizontal" @select="updateParamsType">
		<el-menu-item v-for="(slides, key,index) in order_tab" :key="slides.id" :index="slides.type">
		    {{slides.name}}
		</el-menu-item>
		<!--<el-menu-item>
			<i class="el-icon-delete"></i>异常订单
		</el-menu-item>
		<el-menu-item v-if="current_user.user_type=='super' || current_user.user_type=='server'">
			<i class="el-icon-delete"></i>回收站
		</el-menu-item>-->
  </el-menu>
</template>

<script>
import {mapGetters, mapActions} from 'vuex'
export default {
  computed: {
    ...mapGetters('orders', [ 'params','order_tab','current_user']),
  },
  methods: {
    ...mapActions('orders', ['updateParamsType'])
  }
}
</script>
